package com.xxxx.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.pojo.Menu;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chao
 * @since 2022-09-26
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户Id查询菜单列表
     * @return
     * @param id
     */
    List<Menu> getMenusByAdminId(Integer id);

    List<Menu> getMenusWithRole();

    List<Menu> getAllMenus();
}
